from django.db import models
from django.utils.translation import gettext_lazy as _

# Create your models here.
class Logs(models.Model):
    user = models.CharField(_("user"), max_length=50)
    host = models.CharField(_("host"), max_length=50, default="-")
    instance = models.CharField(_("instance"), max_length=50)
    message = models.CharField(_("message"), max_length=255)
    date = models.DateTimeField(_("date"), auto_now=True)

    def __str__(self):
        return self.instance